<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>列表渲染</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        <div>
            <div v-for="(item, index) of list" :key="item.id">
                {{item.text}}---{{index}}
            </div>
        </div>
        <div v-for="(items,key,index) of userInfo">
            {{items}}----{{key}}----{{index}}
        </div>
    </div>
    <script>
        var vm = new Vue({
            el: "#app",
            data: {
                list: [
                    {
                       id: "001",
                       text: "hello"
                    },
                    {
                        id: "002",
                        text: "world"
                    },
                    {
                        id: "003",
                        text: "china "
                    },
                ],
                userInfo: {
                    name: "dell",
                    age: 26,
                    gender: "male",
                    salary: "secret"
                }
            }
        })
    </script>
</body>
</html>